package com.purchase.manage.mapper;

import com.purchase.manage.damian.DAO.SupplierDAO;
import com.purchase.manage.damian.Purchase;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.Date;
import java.util.List;

@Mapper
public interface ManageMapper {

    //审核供应商
    int examineSupplier(SupplierDAO supplierDAO);

    //删除该家供应商信息
    void deleteSupplier(SupplierDAO supplierDAO);

    //查找uid
    String selectUser(@Param("phone") String handledByPhone,@Param(value = "name") String handledBy);

    //删除多个供应商
    int deleteSupplierIds(@Param("ids") String[] sid);

    //查看采购员列表
    List<Purchase> selectPurchaseList(Purchase purchase);

    //删除多个采购员信息
    int deletePurchaseIds(@Param("ids") String[] ids);

    //查找供应商ids
    Long[] selectSupplierIdList(@Param("ids") String[] sid);

    //删除用户供应商表
    void deleteUserSupplier(@Param("ids") Long[] userId);

    //删除用户表
    void deleteUser(@Param("ids")Long[] userId);

    //删除权限表
    void deleteRole(@Param("ids")Long[] userId);

    //删除用户采购员关系
    void deleteUserPurchase(@Param("ids")Long[] userId);

    //查找采购员ids
    Long[] selectPurchaseIdList(@Param("ids")String[] ids);

}
